Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: Telephony /
Chapter 2 - Telephone Terminals / Telephone Terminals Reference
Constants


Hookswitch Types and States

The hookType parameter of the TELGetHooksw and TELSetHooksw functions and the mtype parameter of the telTermHookMsg message provide information about the hookswitch type. These parameters can contain one of the following constants:

enum {
   telHandset              = 1,
   telSpeakerphone         = 2
};
Constant descriptions

telHandset
The terminal device is the handset.
telSpeakerphone
The terminal device is the speakerphone.
Note
Hookswitch type values in the range 3 through 255 are reserved for use by the Telephone Manager. Hookswitch type values in the range 256 through 32768 are available for use by telephone tools.
The offHook parameter of the TELGetHooksw and TELSetHooksw functions and the value parameter of the telTermHookMsg message indicate whether the hookswitch state is on or off:

enum {
   telDeviceOffHook        = 1,
   telDeviceOnHook         = 0
};
Constant descriptions

telDeviceOffHook
The terminal device is off hook.
telDeviceOnHook
The terminal device is on hook.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 DEC 1996



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help